<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:include href='../xsl.include.main.xsl'/>

<xsl:template match="post2forum">

<xsl:variable name="action">
<xsl:choose>
	<xsl:when test='@activityId'>
			<xsl:value-of select="concat(@actionPage,
			concat('?activityId=',
			concat(@activityId,
			concat('&amp;forum_id=',@forumid)
			)
			)
			)"/>
	</xsl:when>
	<xsl:when test='@holidayId'>
			<xsl:value-of select="concat(@actionPage,
			concat('?holidayId=',
			concat(@holidayId,
			concat('&amp;forum_id=',@forumid)
			)
			)
			)"/>
	</xsl:when>
	<xsl:otherwise>
			<xsl:value-of select="concat(@actionPage,
			concat('?forum_id=',@forumid)
			)"/>
	</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<TABLE class="body" cellSpacing="0" cellPadding="0"  border="0" >
<form name="formRegistration" method="post" action="{$action}">
<input type="hidden" name="FORM_ID" value="post2forum"></input>
<input type="hidden" name="forumid" value="{@forumid}"></input>
		<TR>
			<TD width="8"><IMG height="8" src="/imgs/ctlr.gif" width="8" border="0"/></TD>
			<TD width="100%" bgcolor="#db0000"></TD>
			<TD width="8"><IMG height="8" src="/imgs/ctrr.gif" width="8" border="0"/></TD>
		</TR>
		<TR vAlign="top">
			<TD width="8" bgcolor="#db0000"></TD>
			<TD width="100%" align="center" style="color:white; padding-bottom:10px;" bgcolor="#DB0000" valign="top">
			

	<div>
	<TEXTAREA id="TA1" name="TA1" rows="10" cols="40" style="width:100%;" WRAP="SOFT" class="body"><xsl:value-of select="/post2forum/@TA1"/>
	</TEXTAREA>
	<br/>
	<span style="font-size:8pt;">Sono consentiti i tag html: bold (&lt;b&gt;&lt;/b&gt;), anchor (&lt;a href=""&gt;&lt;/a&gt;), breakline (&lt;br/&gt;), paragraph (&lt;p/&gt;).</span>
	<p/>
	<input type="submit" name="SUBMIT3" value="Invia il messaggio"/>
	<input style="margin-left:2px;" type="submit" name="PREVIEW" value="Anteprima"/>
	</div>
	
			</TD>
			<TD width="8" bgcolor="#db0000"></TD>
		</TR>
		<TR>
			<TD width="8"><IMG height="8" src="/imgs/cblr.gif" width="8" border="0"/></TD>
			<TD width="100%" bgcolor="#db0000"></TD>
			<TD width="8"><IMG height="8" src="/imgs/cbrr.gif" width="8" border="0"/></TD>
		</TR>
</form>
</TABLE>


<xsl:if test="string-length(/post2forum/@TA1) &gt; 0">
<TABLE class="body" cellSpacing="0" cellPadding="0"  border="0" style="margin-top:20px;">
		<TR>
			<TD width="8"><IMG height="8" src="/imgs/ctlr.gif" width="8" border="0"/></TD>
			<TD width="100%" bgcolor="#db0000"></TD>
			<TD width="8"><IMG height="8" src="/imgs/ctrr.gif" width="8" border="0"/></TD>
		</TR>
		<TR vAlign="top">
			<TD width="8" bgcolor="#db0000"></TD>
			<TD width="100%" align="center" style="color:white; padding-bottom:10px;" bgcolor="#DB0000" valign="top">
			

	<div>
	<span style="color:white;" class="body12">Anteprima </span>
	<input type="hidden" name="D2" value="1195"></input>
	</div>
	
			</TD>
			<TD width="8" bgcolor="#db0000"></TD>
		</TR>
		<TR vAlign="top">
			<TD width="8" style="border-left:1px solid #db0000;" bgcolor="white">&#160;</TD>
			<TD width="100%" align="left" style="color:white; padding-bottom:10px;" bgcolor="white" valign="top">
				
		<div class="b10b" style="padding-top:10px;padding-bottom:2px;">
		<xsl:value-of select="@TA1" disable-output-escaping="yes"/>
		</div>
		<div class="b10b" style="padding-top:4px; color:#666666;">(
		<xsl:call-template name="ggmmaahhmm">
			<xsl:with-param name="time" select="@time"/>
			<xsl:with-param name="cr" select="0"/>
		</xsl:call-template>
		)
		</div>
	
			</TD>
			<TD width="8" style="border-right:1px solid #db0000;" bgcolor="white">&#160;</TD>
		</TR>
		<TR>
			<TD width="8"><IMG height="8" src="/imgs/cblr.gif" width="8" border="0"/></TD>
			<TD width="100%" bgcolor="#db0000"></TD>
			<TD width="8"><IMG height="8" src="/imgs/cbrr.gif" width="8" border="0"/></TD>
		</TR>
</TABLE>
</xsl:if>

</xsl:template>

</xsl:stylesheet>